package com.tianji.learning.domain.vo;

import com.tianji.learning.enums.LessonStatus;
import com.tianji.learning.enums.PlanStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "我的課程信息")
public class LearningLessonLatestVO {

    @ApiModelProperty("数据主键")
    private Long id;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("课程名称")
    private String courseName;

    @ApiModelProperty("课程背景图")
    private String courseCoverUrl;

    @ApiModelProperty("课程总小节数")
    private Integer sections;

    @ApiModelProperty("已学小节数")
    private Integer learnedSections;

    @ApiModelProperty("学习状态")
    private LessonStatus status;

    @ApiModelProperty("学习计划状态")
    private PlanStatus planStatus;

    @ApiModelProperty("学习周期开始时间")
    private LocalDateTime createTime;

    @ApiModelProperty("学习周期结束时间")
    private LocalDateTime expireTime;

    @ApiModelProperty("最近学习的小结名称")
    private String latestSectionName;

    @ApiModelProperty("最近学习的小结编号")
    private Integer latestSectionIndex;

}
